<!--
 * @Author: “ChengNan” 1429323234@qq.com
 * @Date: 2024-06-07 15:40:21
 * @LastEditors: “ChengNan” 1429323234@qq.com
 * @LastEditTime: 2024-06-12 13:50:54
 * @FilePath: /src/views/7.routerDO/children/child2.vue
 * @Description: 
-->
<template>
  <div>
    <h2>{{ name }}</h2>
  </div>
</template>

<script>
export default {
  data() {
    return {
      name: 'child2',
    }
  },
  created () {
    const { name } = this.$route.params  
    this.name = name
    console.log(this.$route);
  },
}
</script>

<style lang="scss" scoped>

</style>